# coding:utf8
from . import home_blueprint
from flask import render_template
from flask import redirect
from flask import url_for


@home_blueprint.route('/')
def index():
    return render_template('home/index.html')


@home_blueprint.route('/login')
def login():
    return render_template('home/login.html')


@home_blueprint.route('/logout')
def logout():
    return redirect(url_for('home.login'))


@home_blueprint.route('/register')
def register():
    return render_template('home/register.html')


@home_blueprint.route('/user')
def user():
    return render_template('home/user.html')


@home_blueprint.route('/pwd')
def pwd():
    return render_template('home/pwd.html')


@home_blueprint.route('/comments')
def comments():
    return render_template('home/comments.html')


@home_blueprint.route('/loginlog')
def loginlog():
    return render_template('home/loginlog.html')


@home_blueprint.route('/moviecol')
def moviecol():
    return render_template('home/moviecol.html')


@home_blueprint.route('/animate')
def animate():
    return render_template('home/animate.html')


@home_blueprint.route('/search')
def search():
    return render_template('home/search.html')


@home_blueprint.route('/play')
def play():
    return render_template('home/play.html')
